package com.niit.session12.inter;
//一个类继承了另一个类之后,还可以继续实现别的接口,间接解决了java单继承的缺陷
public class Dog extends Aniaml implements Swim{

	@Override
	public void eat() {
		System.out.println("吃骨头");
	}

	public Dog() {
		super();
	}

	public Dog(String name, int age) {
		super(name, age);
	}

	@Override
	public void swim() {
		System.out.println("狗刨");
		
	}

	
	

}
